package mysql

import (
	"gorm.io/gorm"
	"time"
)

type ProductOtherInfo struct {
	gorm.Model
	AfterSalesStatus    int       `gorm:"type:int(10);not null;comment:'是否允许退换货1:是 2:否'"`
	WithoutReasonStatus int       `gorm:"type:int(10);not null;comment:'是否允许7天无理由1:是 2:否'"`
	ProductStatus       int       `gorm:"type:int(10);not null;comment:'是否上架1:是 2:否'"`
	NoSaleStatus        int       `gorm:"type:int(10);not null;comment:'开售时间选择1:立刻开售 2:定时开售'"`
	NoSaleTime          time.Time `gorm:"type:datetime(3);not null;comment:'开售时间'"`
}

func ProductOtherInfoCreate(info *ProductOtherInfo) error {
	return DB.Debug().Create(&info).Error
}
